package com.hl.mapper;

import com.hl.pojo.Carouselimages;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface Zixunlunbo {
    @Select("select  * from carouselimages limit 4,5")
    List<Carouselimages> lunbophotos();

    @Select("select * from carouselimages")
    List<Carouselimages> selectlunbo();

    @Insert("insert into carouselimages (image_url) values (#{path})")
    int insertlunbophotos(String path);

    @Delete("delete from carouselimages where id = #{id}")
    int deletelunbophotos(Integer id);
}
